x86/idle: update to include further package/core residency MSRs
authorJan Beulich <jbeulich@suse.com>
Tue, 18 Mar 2014 10:52:34 +0000 (11:52 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 18 Mar 2014 10:52:34 +0000 (11:52 +0100)
commitca57e4c9b8cb02ac8ea0fb474219163fba12bf6f
tree609139ca3986f944e602c2babe756a5750d84f20
parent3385bf3aad25082e3bc6ab0e1cbd639512983e4d
x86/idle: update to include further package/core residency MSRs

With the number of these growing it becomes increasingly desirable to
not repeatedly alter the sysctl interface to accommodate them. Replace
the explicit listing of numbered states by arrays, unused fields of
which will remain untouched by the hypercall.

The adjusted sysctl interface at once fixes an unrelated shortcoming
of the original one: The "nr" field, specifying the size of the
"triggers" and "residencies" arrays, has to be an input (along with
being an output), which the previous implementation didn't obey to.

Note that the bouncing direction in the libxc interface at once gets
corrected to OUT (was BOTH).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
tools/libxc/xc_pm.c
tools/libxc/xenctrl.h
tools/misc/xenpm.c
xen/arch/x86/acpi/cpu_idle.c
xen/include/public/sysctl.h